package com.sunnada.edu.mobile.login.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sunnada.edu.system.pub.common.Plupload;

@Service
@Transactional
public interface PhoneLoginService {
	/**
	 * explain 查询菜单
	 * @author chs 2015-5-12
	 * update chs 2015-5-12
	 * @param params
	 * @return List
	 */
	public List findModules(HashMap<String, String> params);
	/***
	 * explain 获得用户 
	 * @author chs 2015-5-12
	 * update chs 2015-5-12
	 * @param params
	 * @return Map
	 */
	public Map<String,String> getUserByUserId(HashMap<String, String> params);
	
	/***
	 * explain 验证码 
	 * @author chs 2015-7-30
	 * update chs 2015-7-30
	 * @param params
	 * @return Map
	 */
	public boolean isSmsCodeOk(HashMap<String, String> params);
	
	/***
	 * explain 删除短信验证码
	 * @author zjc 2015-12-7
	 * update zjc 2015-12-7
	 * @param params
	 * @return int 
	 */
	public int  deletSemsCode(HashMap<String, String> params);
	/***
	 * explain 统计用户登录的次数
	 * @author zjc 2016-1-04
	 * update zjc 2016-1-04
	 * @param params
	 * @return  
	 */
	public int addUserLog(HashMap<String, String> params);
	/***
	 * explain 查询当天是否登录
	 * @author zjc 2016-1-04
	 * update zjc 2016-1-04
	 * @param params
	 * @return  
	 */
	public boolean selectUserlog(HashMap<String, String> params);
	public List getUserMobileMenus(HashMap<String, String> params);
}
